//
//  NoticeItemContentView.swift
//  PropertyCommunity
//
//  Created by benwang on 2021/7/4.
//

import UIKit

class NoticeItemContentView: UIView {

  enum NoticeAuditStatus {
    case auditing
    case pass
    case nopass
  }

  @IBOutlet weak var titleLabel: UILabel!
  @IBOutlet weak var statusLabel: UILabel!
  @IBOutlet weak var dateLabel: UILabel!
  /// 分类1
  @IBOutlet weak var tagView: UIView!
  @IBOutlet weak var button1: UIButton!
  /// 分类2
  @IBOutlet weak var button2: UIButton!

  var type: NoticeListType = .myNotice {
    didSet {
      switch type {
      case .trialed:
        statusLabel.isHidden = false
      case .myNotice:
        tagView.isHidden = false
      default:
        ()
      }
    }
  }

  override func awakeFromNib() {
    super.awakeFromNib()
  }


  /*
    // Only override draw() if you perform custom drawing.
    // An empty implementation adversely affects performance during animation.
    override func draw(_ rect: CGRect) {
        // Drawing code
    }
    */

}
